#include "../include/log/log_format.hpp"
#include <iostream>

int main()
{
    log_system::LogMessage message(log_system::LogLevel::INFO, "test_log_format.cc", 6, "root", "格式化功能测试");
    // log_system::Formatter formatter1;
    // std::string str1 = formatter1.format(message);
    // std::cout << str1;

    // ---------------------------------------------------------------------------------------

    // log_system::Formatter formatter2("test pattern: %%[%p][%d{%H:%M:%S}][%f:%l][%t][%c]%T%m%n%%");
    // std::string str2 = formatter2.format(message);
    // std::cout << str2;

    // ----------------------------------------------------------------------------------------

    // log_system::Formatter formatter3("[%p][%d{%H:%M:%S}][%f:%l][%t][%c]%T%m%n{");
    // formatter3.format(std::cout, message);

    // -----------------------------------------------------------------------------------------

    // log_system::Formatter formatter4("[%p]%o%o%o[%d{%H:%M:%S}][%f:%l][%t][%c]%T%m%n");
    // formatter4.format(std::cout, message);

    return 0;
}
